package com.decoration.basic.mapper;


import com.decoration.basic.entity.DecParamInf;
import com.decoration.basic.entity.DecPhaseBase;
import com.decoration.basic.entity.DecPhaseInf;
import com.decoration.basic.entity.PhaseUsers;
import com.decoration.basic.po.DecPhaseVo;

import java.util.List;

//@Repository
//@Mapper
public interface DecCtctionPhaseMapper {

    List<DecPhaseInf> phaselist(String ctcId);
    DecPhaseInf findNextPhase(DecPhaseInf decPhaseInf);
    DecPhaseInf findPhaseById(String phaseId);
    int updateVailedFlag(DecPhaseInf decPhaseInf);
    int updateNextPhase(DecPhaseInf decPhaseInf);
    int verifyPhaseName(String phaseName);
    int add(DecParamInf decParamInf);

    DecPhaseVo getPhaseInf(String phaseId);
    int deleteMasterUserlist(String phaseId);
    int addPhaseUser(PhaseUsers phaseUsers);

    int checkFlowStats(String ctcId);

    int delete(String paramId);

    int addPhase(DecPhaseInf decPhaseInf);

    List<DecPhaseInf> ctcPhaselist(String flowId);

    int deletePhaseByFlowid(String flowId);

    void deletePhaseByCtcId(String ctcId);
    void deleteFlowByCtcId(String ctcId);

    /**
     * 通过师傅id和项目id查找项目正在进行的阶段信息
     * @param inpo
     * @return
     */
    DecPhaseInf searchPhaseByPerAndCtcid(PhaseUsers inpo);
}